package day1103_3;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class O1 {
    public static void main(String[] args) throws IOException {
        //FileInputStream  fis=new FileInputStream("src\\main\\java\\day1101_1\\O1.java");//1.创建对象fis
        FileInputStream  fis=new FileInputStream("D:\\eclipse.zip");//1.创建对象fis
        BufferedInputStream  bis=new BufferedInputStream(fis);

        int aByte=0;//2.fis的read()读数据
        byte[]  bs=new byte[1024];
        while(    (aByte=(fis.read(bs)))    !=   -1       ){
            System.out.print(   new String(bs)   );
        }

        fis.close();//3.fis的close()  (文件释放)
        System.out.println("读取完毕");
    }
}






